//
//  ViewController.m
//  wnagyi_news
//
//  Created by Guo Rui on 2017/9/14.
//  Copyright © 2017年 GR Harry. All rights reserved.
//

#import "ViewController.h"
#import "TopTableBarViewController.h"

@implementation ViewController
- (IBAction)btnClick:(id)sender {
    TopTableBarViewController *vc = [[TopTableBarViewController alloc] init];
    vc.viewControllerMap =  @[ @{ kClassNameKey : @"HotViewController", kTitleKey : @"热点" },
                               @{ kClassNameKey : @"ReaderViewController", kTitleKey : @"阅读" },
                               @{ kClassNameKey : @"ScienceViewController", kTitleKey : @"科技" },
                               @{ kClassNameKey : @"ScoietyViewController", kTitleKey : @"社会" },
                               @{ kClassNameKey : @"TopLineViewController", kTitleKey : @"头条" },
                               @{ kClassNameKey : @"VideoViewController", kTitleKey : @"视频" }
                               ];
    
    vc.initializeViewControllerBlock = ^UIViewController *(__unsafe_unretained Class viewControllerClass, NSString *title) {
        UIViewController *vc = [[viewControllerClass alloc] init];
        return vc;
    };
    
    [self.navigationController pushViewController:vc animated:YES];
}

@end
